home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypertxt / msdos / hydos10 / keyboard.sys < prev    next >
Encoding:
Text File  |  1991-04-18  |  2.7 KB  |  60 lines

  1.                                 KEYBOARD.SYS
  2.                 Translation table for foreign keyboard codes
  3.              See also <KEYB> <COUNTRY> <NLSFUNC> <CHCP> <MODE>
  4.  
  5. The KEYBOARD.SYS file contains tables which direct the KEYB.COM command to
  6. convert scan codes to ascii characters. To change a keyboard, the new
  7. keyboard must support at least one of the currently prepared code pages for
  8. the CON device.  You can change the keyboard without restarting the
  9. computer.  (For example, the <KEYB> command can be used multiple times.)
  10.  
  11. The <MODE> command is used to prepare the new code pages required by the
  12. new keyboard layout; only certain keyboards or code page combinations
  13. are allowed. If a mismatch is created between keyboard and display,
  14. character keys may not be correctly translated into the correct code
  15. page, and incorrect characters may be displayed.
  16.  
  17. The following table shows the valid combinations of code pages and
  18. keyboards:
  19.  
  20.           ----------------------------------
  21.          | CODE  | KEYBOARD                 |
  22.          | PAGE  |                          |
  23.          |-------|--------------------------|
  24.          |       | US, UK, Fr, GR, IT, SP,  |
  25.          | 437   | LA, SV, SU, NL           |
  26.          |-------|--------------------------|
  27.          |       | UK, Fr, GR, IT, SP, DK,  |
  28.          | 850   | NL, SU, NO, PO, SV, SF,  |
  29.          |       | SG, CF, BE, LA, US       |
  30.          |-------|--------------------------|
  31.          | 860   | PO                       |
  32.          |-------|--------------------------|
  33.          | 863   | CF                       |
  34.          |-------|--------------------------|
  35.          | 865   | NO, DK                   |
  36.           ----------------------------------
  37.  
  38. The <KEYB> command creates translation tables for each code page that
  39. has been prepared at the time <KEYB> is used.  It will activate the code
  40. page that has been requested.  If a code page is desired that is not
  41. in that list of prepared code pages, it must be first prepared and
  42. then <KEYB> should be issued again.  Refer to the <MODE> command for more
  43. information.
  44.  
  45. If a code page has been selected previous to the <KEYB> command, and no
  46. code page is specified in <KEYB>, it will attempt to activate the
  47. selected code page.
  48.  
  49. The <KEYB> command sets the following errorlevel code:
  50.  
  51. 0 - Successful execution and termination.
  52. 1 - Invalid language, code page, or syntax.
  53. 2 - Bad or missing keyboard definition file.
  54. 3 - <KEYB> could not create a keyboard table in resident memory.
  55. 4 - An error condition occurred when communicating with the CON
  56.     device.
  57. 5 - Code page request has not been prepared.
  58. 6 - The translation table for selected code page cannot be found in
  59.     the resident keyboard table.
  60.